body {
    margin: 0;
}

* {
    box-sizing: border-box;
}

.topnav ul {
    list-style-type: none;
    overflow: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: #ffffff;
}

.topnav ul li {
    float: left;
    margin:  30px 10px 30px 50px;
}

.topnav ul li a {
    text-decoration: none;
    text-align: center;
    color: #000000;
    font-size: 25px;
    font-weight: bolder;

}

.topnav ul li a:hover {
    color: #04AA6D;
}

.topnavul li a:active::not :hover {
    color: #04AA6D;
}

a:link {
  color: #000000;
  background-color: transparent;
  text-decoration: none;
}



a:hover {
  color: #04AA6D;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: #04AA6D;;
  background-color: transparent;
  text-decoration: underline;
}

/*style the search bar*/
.search {
    margin: 30px 10px 30px 50px;
    float: left;
}

/*style the search bar*/
.topnav [type="search"] {
    outline: none;
    padding: 10px 5px;
    font-weight: bold;
    color: #000000;
    background: transparent;
    border: 2px solid #04AA6D;
    border-right: none;
    border-radius: 20px;
}

.flex-container {
    display: flex;
}

.flex-item-left {
    flex: 70%;
    background-color: #030d24;
    height: 500px;
    padding: 30px 50px 30px 20px;
}

.flex-item-right {
    flex: 30%;
    padding: 20px;
    height: 500px;
    background-color: #ddd;
}

.flex-item-left h1 {
    font-size: 5vw;
    color: #ffffff;
    border-bottom: 2px solid#ddd;
    text-align: center;
}

input[type="email"] {
    padding: 10px 10px;
    background-color: #ffffff;
    outline: none;
    border: 2px solid #04AA6D;
    color: #000000;
    border-right: 2px solid #04AA6D;
}

button {
    border: 2px solid #04AA6D;
    padding: 10px 10px;
    background-color: #04AA6D;
    font-family: verdana;
    font-weight: bold;
    margin-left: -10px;
}

.topnav button {
    border: 2px solid #04AA6D;
    padding: 10px 20px 10px 20px;
    background-color: #04AA6D;
    font-family: verdana;
    font-weight: bold;
    border-radius: 20px;
    margin-left: -40px;

}

.first {
    background-color: #030d24;
    height: 300px;
}

.second {
    background-color: #04AA6D;
    height: 300px;
    margin-top: -50px;
    width: 100%;
    margin: auto;
    
}

.absolute {
    height: 500px;
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
    position: absolute;
    margin-top: -250px;
}

.imagy  {
    background: linear-gradient(rgba(0,0,16,0.7), rgba(0,0,16,0.7)), url(images/d.avif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: contain;
    height: 450px;
    position: relative;
    border-radius: 10px;
}

.image-text {
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    position: absolute;
    font-size: 25px;
    font-weight: bold;
    transition-property: color;
    transition-timing-function: ease-in;
    transition-duration: 0s;
    transition-delay: 0s;
}

.image-text:hover {
  color: red;
}

@media screen and (max-width: 600px) {
    .second {
      height: 600px;
    }
  }

@media screen and (max-width: 600px) {
    .imagy {
      height: 640px;
    }
  }

  .flex-container {
    display: flex;
  }

  .flex-item-left {
    flex: 65%;
    height: 800px;
    background-color: rgb(31, 28, 28);
  }

  .flex-item-right {
    flex: 35%;
    height: 680px;
    background-color: #ffffff;
    padding: 0%;
    overflow: hidden;
  }

  .form-container {
    width: 70%;
    background-color: #ffffff;
    margin: auto;
    padding: 20px;
    border-radius: 30px;
    text-align: center;
  }

  input[type="tel"] {
    padding: 10px 20px;
    border-radius: 3px;
    border: 2px solid#ddd;
    outline: none;
    margin: 10px;
  }

  .form-container [type="email"] {
    padding: 10px 20px;
    border-radius: 3px;
    border: 2px solid#ddd;
    margin: 10px;
  }

  input[type="text"] {
    padding: 10px 35px;
    border-radius: 3px;
    border: 2px solid#ddd;
    margin: 10px;
    outline: none;
  }

  .form-container button {
    margin-top: 30px;
    font-family: verdana;
    font-weight: bold;
    font-size: 18px;
    border-radius: 15px;
    background-color: #04AA6D;
    width: 30%;
  }

  select {
    padding: 10px 20px;
    border-radius: 3px;
    border: 2px solid#ddd;
    width: 45%;
    outline: none;
    margin: 10px;
  }

  textarea {
    width: 90%;
    resize: none;
    border-radius: 3px;
    border: 2px solid#ddd;
    outline: none;
  }
  


  @media screen and (max-width: 900px) {
    .flex-container {
      flex-direction: column;
    }
  }

  @media screen and (max-width: 600px) {
    .flex-item-left {
      width: 100%;
      padding: 0;
    }
  }

  @media screen and (max-width: 900px) {
    .flex-item-left {
      height:800;
    }
  }


  #first {
    height: 350px;
    width: 100%;
    background-color: #ffffff;
  }

  #second {
    height: 350px;
    width: 100%;
    background-color: #ddd;
    text-align: center;
    padding: 130px 20px;
  }

  .contact {
    text-align: center;
    border-bottom: 2px solid#ddd;
}

.phone {
    text-align: center;
    border-bottom: 2px solid#ddd;
}

.email {
    text-align: center;
    border-bottom: 2px solid#ddd;
    padding-top: 40px;
    padding-bottom: 40px;
}

#second a {
    margin: 30px;
    font-size: 30px;
    text-decoration: none;
    color: #000000;
}

#second p {
    font-size: 30px;
    font-weight: bold;
}

footer {
    background-color: #000000;
    text-align: center;
    padding: 10px;
    color: #ffffff;
}